add_llbuild_library(llbuildBasic STATIC
  ExecutionQueue.cpp
  FileInfo.cpp
  FileSystem.cpp
  Hashing.cpp
  LaneBasedExecutionQueue.cpp
  PlatformUtility.cpp
  SerialQueue.cpp
  Subprocess.cpp
  Tracing.cpp
  Version.cpp
  ShellUtility.cpp
  )

target_link_libraries(llbuildBasic PRIVATE
  llvmSupport
  Threads::Threads)

if(CMAKE_SYSTEM_NAME STREQUAL Windows)
  target_link_libraries(llbuildBasic PUBLIC
    ShLwApi.lib)
endif()

set_property(GLOBAL APPEND PROPERTY LLBuild_EXPORTS llbuildBasic)
